package com.hjm.framework.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description: 读取自定义配置信息
 * @author: dxk
 */
@Component
@ConfigurationProperties(prefix = "custom")
public class CustomConfig {
    /**
     * 七牛云地址
     **/
    private static String qiniuUrl;
    /**
     * 压缩图片大小 KB
     **/
    private static Long ysPic;

    /**
     * 图片服务器路径
     */
    private static String imgUrl;
    /**
     * 填单最大金额
     */
    private static String tranddelMax;

    /**
     * 虚拟账户地址
     */
    private static String virtualAccountUrl;
    /**
     * 虚拟账户端口
     */
    private static Integer virtualAccountPort;


    /**
     * tmk地址
     */
    private static String tradeUrl;
    /**
     * 填单最大金额
     */
    private static Integer tradePort;

    private static String orderCompleteUrl;

    private static String orderCompletePort;

    /**
     * 乐刷渠道信息
     **/
    public static String agentId;
    public static String subAgentId;
    public static String source;
    public static String baseUrl;
    public static String signKey;
    public static String uploadStrategy;

    public static String getQiniuUrl() {
        return qiniuUrl;
    }

    public  void setQiniuUrl(String qiniuUrl) {
        CustomConfig.qiniuUrl = qiniuUrl;
    }

    public static Long getYsPic() {
        return ysPic;
    }

    public  void setYsPic(Long ysPic) {
        CustomConfig.ysPic = ysPic;
    }

    public static String getImgUrl() {
        return imgUrl;
    }

    public  void setImgUrl(String imgUrl) {
        CustomConfig.imgUrl = imgUrl;
    }

    public static String getTranddelMax() {
        return tranddelMax;
    }

    public  void setTranddelMax(String tranddelMax) {
        CustomConfig.tranddelMax = tranddelMax;
    }

    public static String getVirtualAccountUrl() {
        return virtualAccountUrl;
    }

    public  void setVirtualAccountUrl(String virtualAccountUrl) {
        CustomConfig.virtualAccountUrl = virtualAccountUrl;
    }

    public static Integer getVirtualAccountPort() {
        return virtualAccountPort;
    }

    public  void setVirtualAccountPort(Integer virtualAccountPort) {
        CustomConfig.virtualAccountPort = virtualAccountPort;
    }

    public static String getTradeUrl() {
        return tradeUrl;
    }

    public  void setTradeUrl(String tradeUrl) {
        CustomConfig.tradeUrl = tradeUrl;
    }

    public static Integer getTradePort() {
        return tradePort;
    }

    public  void setTradePort(Integer tradePort) {
        CustomConfig.tradePort = tradePort;
    }

    public static String getOrderCompleteUrl() {
        return orderCompleteUrl;
    }

    public  void setOrderCompleteUrl(String orderCompleteUrl) {
        CustomConfig.orderCompleteUrl = orderCompleteUrl;
    }

    public static String getOrderCompletePort() {
        return orderCompletePort;
    }

    public  void setOrderCompletePort(String orderCompletePort) {
        CustomConfig.orderCompletePort = orderCompletePort;
    }

    public static String getAgentId() {
        return agentId;
    }

    public  void setAgentId(String agentId) {
        CustomConfig.agentId = agentId;
    }

    public static String getSubAgentId() {
        return subAgentId;
    }

    public  void setSubAgentId(String subAgentId) {
        CustomConfig.subAgentId = subAgentId;
    }

    public static String getSource() {
        return source;
    }

    public  void setSource(String source) {
        CustomConfig.source = source;
    }

    public static String getBaseUrl() {
        return baseUrl;
    }

    public  void setBaseUrl(String baseUrl) {
        CustomConfig.baseUrl = baseUrl;
    }

    public static String getSignKey() {
        return signKey;
    }

    public  void setSignKey(String signKey) {
        CustomConfig.signKey = signKey;
    }
    public static String getUploadStrategy() {
        return uploadStrategy;
    }

    public  void setUploadStrategy(String uploadStrategy) {
        CustomConfig.uploadStrategy = uploadStrategy;
    }
}
